package me.yobol.greentable.dao;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

import me.yobol.greentable.bean.MenuBean;

/**
 * @author Yobol
 *
 */
public interface IMenuDAO {

	public int save(Connection ctn, MenuBean menu) throws SQLException;
	
	public MenuBean delete(Connection ctn, int menuId) throws SQLException;
	
	public void updateMenuName(Connection ctn,int menuId,String menuName) throws SQLException;
	public void updateMemuDescription(Connection ctn, int menuId, String menuDescription) throws SQLException;
	
	public MenuBean get(Connection ctn, int menuId) throws SQLException;
	public List<MenuBean> getByMenuCreator(Connection ctn, int menuCreator) throws SQLException;
}
